package com.tai.design.memento.black_box;


/**
 * The type Role state caretaker.
 *
 * @version v1.0
 * @ClassName: RoleStateCaretaker
 * @Description: 备忘录对象管理对象
 * @Author: taylor
 */
public class RoleStateCaretaker {

    //声明RoleStateMemento类型的变量
    private Memento memento;

    /**
     * Gets memento.
     *
     * @return the memento
     */
    public Memento getMemento() {
        return memento;
    }

    /**
     * Sets memento.
     *
     * @param memento the memento
     */
    public void setMemento(Memento memento) {
        this.memento = memento;
    }
}
